/**
 * 作者: wgx
 * 日期: 2025-03-18 16:42:08
 * 备注: 派对举办者的奖励
 */
package com.motu.monstercity.server.game.commondata.feast;

import io.vertx.core.json.JsonObject;

public class FeastCreaterRewardModel {
    protected int id; // id
    protected int type; // 派对类型
    protected int numMin; // 参与人数的最小值
    protected int numMax; // 参与人数的最大值
    protected String reward; // 奖励

    public FeastCreaterRewardModel() {
    }

    public FeastCreaterRewardModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        type = obj.containsKey("type") ? obj.getInteger("type") : 0;
        numMin = obj.containsKey("num_min") ? obj.getInteger("num_min") : 0;
        numMax = obj.containsKey("num_max") ? obj.getInteger("num_max") : 0;
        reward = obj.containsKey("reward") ? obj.getString("reward") : "";
    }

    public int getId() {
        return id;
    }

    public int getType() {
        return type;
    }

    public int getNumMin() {
        return numMin;
    }

    public int getNumMax() {
        return numMax;
    }

    public String getReward() {
        return reward;
    }

}
